import Home from '../pages/Home/index'
import Layout from '../pages/Layout/index'
import Login from '../pages/Login/index'
import List from '../pages/List/index'
import List1 from '../pages/List/List1/index'
import { createBrowserRouter } from 'react-router-dom'
const router = createBrowserRouter([
    {
        path: '/', element: <Layout />, children: [
            { path: '/', element: <Home /> },
            {
                path: '/list', element: <List />,
                children: [
                    { path: '/list/list1', element: <List1 /> },
                ]
            },
        ]
    },
    { path: '/login', element: <Login /> },
])
export default router